import React from 'react';

import Constants from '../../common/Constants';
import PostRequestContentAction from '../post/PostRequestContentAction';

export default class NewsRequestContentAction extends PostRequestContentAction {
  constructor(props) {
    super(props);

    this.moduleType = Constants.MODULE_TYPE.NEWS;
    this.name = "NewsRequestContentAction";
  }

  _dealFinishSucess(data, response) {
    let detail = "";
    if(data && data.detail != undefined) {
      detail = data.detail;
    }
    this.caller.setState({
      viewStatus:response.status,
      isResponeUpdate:true,
      statusText:detail,
      data:data,
    })
  }
}
